<%-- 
    Document   : tranggiaovien
    Created on : Sep 15, 2012, 12:02:24 AM
    Author     : Odotube
--%>

<%@page import="thitracnghiem.GiaoVien"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%@include file="/menuad.html"%>
        <%
            String s = "";
            session = request.getSession();
            GiaoVien gv = (GiaoVien) session.getAttribute("gv");
            if (gv == null) {
                response.sendError(403);
                return;
            } else if (!gv.getUsername().equals("admin")) {
                response.sendError(403);
                return;
            } else {
                s = "Xin chào: " + gv.getUsername() + "<br>Thông tin: <br> Họ tên: " + gv.getHoTenGV() + "<br> Khoa: " + gv.getKhoa() + "<br></body></html>";
            }
        %>
        <%=s%>
    </body>
</html>
